package com.wutuo.school.provider.dao;

import com.wutuo.school.api.request.ListSchoolRequest;
import com.wutuo.school.api.request.SchoolRequest;
import com.wutuo.school.api.response.SchoolResponse;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 校区 Dao 层
 *
 * @author lvh
 * @version 1.0
 */
public interface SchoolMapper extends BaseSchoolMapper {

    @SelectProvider(type = SchoolSqlProvider.class, method = "lisForPage")
    @ResultType(value = SchoolResponse.class) List<SchoolResponse> lisForPage(
        ListSchoolRequest request);

    @SelectProvider(type = SchoolSqlProvider.class, method = "list")
    @ResultType(value = SchoolResponse.class) List<SchoolResponse> list(SchoolRequest request);
}